package com.hww.lcnclient.dao;

import com.hww.lcnclient.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: Wenwu Huang
 * @Date: 2019/4/29 11:04
 */
@Repository
public interface UserMapper {

    @Insert("insert into t_user(name, age) values (#{user.name},#{user.age})")
    void insert(@Param("user") User user);
}
